package jlaw.ejb.impl;

//import javax.annotation.Resource;
import jlaw.ejb.interfaces.Mongeta;
import jlaw.entitats.Taulaprova;

import javax.ejb.*;
import javax.persistence.*;

/**
 * Session Bean implementation class Mongeta
 */
//@Stateless(mappedName = "Mongeta")
@Stateless
@Remote
public class MongetaBean implements Mongeta {
  
    @PersistenceContext
	private EntityManager em;

    public void usuaridefecte (Taulaprova tp)
        {
    	em.persist(tp);
        }

    
    public String saluda() {
        // TODO Auto-generated constructor stub
    		return "hola";
    	}
    }

